package cn.itcast.web.simpletag;

import java.io.IOException;
import java.util.Date;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.JspFragment;
import javax.servlet.jsp.tagext.SimpleTagSupport;


//属性说明 接收非基本类型的属性
public class SimpleTagDemo6 extends SimpleTagSupport {

	private Date date;
	
	
	public void setDate(Date date) {
		this.date = date;
	}



	@Override
	public void doTag() throws JspException, IOException {
	     JspFragment jspBody = this.getJspBody();
	     jspBody.invoke(null);
		System.out.println(date);
		
	}
	
	
	
	
	
	
	
}
